<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--模板-->
    <div id="app">
        {{msg}}
        <button @click="msg">click</button>
    </div>
</body>
<!--会在全局注册一个Vue构造函数-->
<script src="./js/vue.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{msg:"data"},
        methods:{msg:function () {console.log("---")}},
        computed:{msg(){return "computed"}}
    })
</script>
</html>